package com.vidyu.servicelayer.serviceinterface;

import com.vidyu.businesslayer.businessentities.*;
import com.vidyu.servicelayer.servicedataentitties.*;

import java.lang.String;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * Session: eyalsa
 * Date: 06/03/12
 * Time: 15:44
 * To change this template use File | Settings | File Templates.
 */
public interface ControllerServiceWrapper {
    void saveTracking(String userParams);
    long addSkill(String title, String skillDesc);
    long addEmployer(EmployerRO employerRO);
    long addContractor(ContractorRO contractorrRO);
    Employer getEmployerByEmailAndPassword(String email, String password);
    Contractor getContractorByEmailAndPassword(String email, String password);
    long addProjectToEmployer (ProjectRO projectRO);
    void updateProject(ProjectRO projectRO);
    void setSkillsToContractor(SkillsRO skillsRO);

    long addMsg(MsgRO msgRO);
    void updateMsgStatus(MsgRO msgRO);
    List<Msg> getMsgInbox(long fromId);

    long contractorApplyToProject(UserInProjectRO userInProjectRO);
    void updateUserInProject(UserInProjectRO userInProjectRO);
    List<UserInProject> getUsersInProjectByStatus(long projectId, String status);

    public List<Pair<Long, String>> getAllContractTitles();
    public Pair<String, String> getContract(long id);
}
